import 'package:fish_redux/fish_redux.dart';

enum SendProblemViewAction {
  action,
  onSubmit,
  onTap,
}

class SendProblemViewActionCreator {
  static Action onAction() {
    return const Action(SendProblemViewAction.action);
  }

  static Action onSubmit() {
    return const Action(SendProblemViewAction.onSubmit);
  }

  static Action onTap(index) {
    return Action(SendProblemViewAction.onTap, payload: index);
  }
}
